<template>
  <div class="icon-text">
    <div
      style="
        width: 3px;
        height: 16px;
        border-radius: 2px;
        background: var(--Primary2-500, #007bff);
      "
    ></div>
    <span class="text">{{ text }}</span>
  </div>
</template>

<script>
import { defineComponent } from "vue";
import { Warning } from "@element-plus/icons-vue";

export default defineComponent({
  name: "IconText",
  components: {
    Warning,
  },
  props: {
    iconClass: {
      type: String,
      default: "icon",
    },
    iconName: {
      type: Object,
      required: true,
    },
    text: {
      type: String,
      required: true,
    },
  },
});
</script>

<style scoped>
.icon-text {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 10px;
  align-self: stretch;
}

.icon {
  margin-right: 8px;
}

.text {
  font-size: 16px;
  color: #333;
}
</style>
